<div class="ibox">
	<div class="ibox-content">
		<form class="form-horizontal" method="post" action="${cxt!}/admin/settlement/settlement" id="searchForm">
			<input type="hidden" name="settlement.id" value="${settlement.id!}" />
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["settlement.userid"]}</label>
				<div class="col-md-3">
					<p class="form-control-static"><#cust customerId="${settlement.userid!}"/></p>
				</div>

				<label class="col-sm-2 control-label">${_res["settlement.amount"]}</label>
				<div class="col-sm-3">
					<p class="form-control-static">${settlement.amount!}</p>
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-md-2 control-label">${_res["settlement.expecteddate"]}</label>
				<div class="col-md-3">
					<p class="form-control-static">${settlement.expecteddate!}</p>
				</div>

				<label class="col-md-2 control-label">${_res["settlement.status"]}</label>
				<div class="col-md-3">
					<p class="form-control-static">
						<%if(settlement.status=="C"){%>
						<#dict type="select" class="form-control" name="settlement.status" dictCode="SETTLEMENT_STATUS" defaultValue="${paramMap['settlement.status']}" value="${settlement.status!}" disabled="disabled"/><br>
						<%}else{%>
						<#dict type="select" class="form-control" name="settlement.status" dictCode="SETTLEMENT_STATUS" defaultValue="${paramMap['settlement.status']}" value="${settlement.status!}"/><br>
						<%}%>
					</p>
				</div>

			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-md-2 control-label">${_res["system.memo"]}</label>
				<div class="col-md-3">
					<p class="form-control-static">
						<%if(settlement.status=="C"){%>
						<textarea  class="form-control" rows="3" cols="9" placeholder="${_res['system.memo']}" disabled="disabled">${settlement.memo!}</textarea>
						<%}else{%>
						<textarea name="settlement.memo" class="form-control" rows="3" cols="9" placeholder="${_res['system.memo']}"></textarea>
						<%}%>
					</p>
				</div>
			</div>

			<div class="row">
				<div class="form-group">
					<div class="col-md-10 col-md-offset-5">
						<button type="button" class="btn btn-warning" onClick="ajaxContent('/admin/settlement');">${_res["system.return"]}</button>
						<%if(settlement.status=="P"){%>
						<button type="button" class="btn btn-warning" onClick="ajaxForm('content','searchForm')">${_res["system.submit"]}</button>
						<%}%>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>